package com.canbot.u05.bean.guide;

/**
 * Created by zmp on 2017/6/30.
 */

public class MapMsgBean {
        /**
         * 消息类型，详见MsgType，，和串口保持一致
         *
         */
        /**
         * 手持端保存地图
         */
        public static final int MOBILE_SAVE_TASK = 0;

        /**
         * 任务重命名
         */
        public static final int MOBILE_RENAME_TASK = 1;

        /**
         * 删除任务
         */
        public static final int MOBILE_DELETE_TASK = 2;

        /**
         * 加载地图
         */
        public static final int MOBILE_LOAD_MAP = 88006;

        /**
         * 复位地图
         */
        public static final int MOBILE_RESTORE_MAP = 88007;
        /**
         * 标记充电位置
         */
        public static final int GET_ROBOT_CURRENT_POSE = 88010;
        private int msgType;

        /**
         * 数据类型---byte or String
         */
//	private byte dataType=MsgType.DATATYPE_STRING;

        /**
         * 数据
         */
        private String msgData;

        public boolean isSuccess() {
                return isSuccess;
        }

        private boolean isSuccess;

        public MapMsgBean(int msgType, String msgData, boolean isSuccess) {
                super();
                this.msgType = msgType;
                this.msgData = msgData;
                this.isSuccess = isSuccess;
        }

        public MapMsgBean() {
                super();
                // TODO Auto-generated constructor stub
        }

        public int getMsgType() {
                return msgType;
        }

        public void setMsgType(int msgType) {
                this.msgType = msgType;
        }

//	public byte getDataType() {
//		return dataType;
//	}
//
//	public void setDataType(byte dataType) {
//		this.dataType = dataType;
//	}

        public String getMsgData() {
                return msgData;
        }

        public void setMsgData(String msgData) {
                this.msgData = msgData;
        }

        @Override
        public String toString() {
                return "MapMsgBean{" +
                        "msgType=" + msgType +
                        ", msgData='" + msgData + '\'' +
                        ", isSuccess=" + isSuccess +
                        '}';
        }
}
